package com.ktjy.mapper;

import com.ktjy.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author:雷淑娥
 * @Date:2024/11/30 15:48
 * version:1.0
 */
public interface SupplierMapper {

    /**
     * 供货商列表查询
     * @param supCode
     * @param supName
     * @return
     */
    public List<Supplier> selectSupplier(@Param("supCode") String supCode, @Param("supName") String supName);

    /**
     * 使用if和set标签改造供货商
     * @param supplier
     * @return
     */
    public int update(Supplier supplier);

    /**
     * 使用Array数组
     * @param storageIds
     * @return
     */
    public List<Supplier> getSuppByStorageArray(Integer[] storageIds);

    public List<Supplier> getSuppByStorageList(List<Integer> storageList);
}
